DruxtJS Site module
The DruxtJS Site module provides an out of the box, decoupled Drupal site with minimal setup and configuration.
Install
$ npm install druxt-site
Usage
Add module to nuxt.config.js
module.exports = {
modules: [
'druxt-site'
],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org'
}
}
Options
Base Druxt options
These options are available to all Druxt modules.
Option | Type | Required | Default | Description |
---|
axios | object | No | {} | Axios instance settings. |
baseUrl | string | Yes | null | Base URL for the Drupal installation. |
endpoint | string | No | /jsonapi | JSON:API Endpoint of the Drupal installation. |